//
//  WebViewController.swift
//  SinWEiBo
//
//  Created by 胡良志 on 2018/5/20.
//  Copyright © 2018年 HuLiangZhi. All rights reserved.
//

import UIKit

class WebViewController: UIViewController {

    let webView = UIWebView()
    
    var urlString: String?
    
    override func loadView() {
        view = webView
        
        loadPage()
    }
    
    private func loadPage() {
        
        guard let urlStr = urlString else {return}
        
        let url = URL(string: urlStr)
        let req = URLRequest(url: url!)
        webView.loadRequest(req)
    }

    
    
}
